/*
 * Copyright (c) 2012-2014, EpicSaaS Yuan Xin technology Co., Ltd.
 * 
 * All rights reserved.
 */
package com.epicsaas.app.ksdapp.android.bean;

import java.util.List;

/** 分页实体 */
public class PageEntity<T> {

    /**  当前时间 */
    private long nowDate;

    /**  结束时间 */
    private long endDate;

    /** 页码 */
    private int pageNumber;//pageNumber

    /** 每页记录数 */
    private int pageSize;//size

    /** 总页数 */
    private int totalPages;//totalPages

    /** 总记录数 */
    private int total; //totals

    /** 结果列表 */
    private List<T> contents; // 不要命名为content，免得重复解析

    public long getNowDate() {
        return nowDate;
    }

    public void setNowDate(long nowDate) {
        this.nowDate = nowDate;
    }

    public long getEndDate() {
        return endDate;
    }

    public void setEndDate(long endDate) {
        this.endDate = endDate;
    }

    public int getPageNumber() {
        return pageNumber;
    }

    public int getPageSize() {
        return pageSize;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public int getTotal() {
        return total;
    }

    public void setContent(List<T> content) {
        this.contents = content;
    }

    public List<T> getContent() {
        return contents;
    }

    public List<T> getContents() {
        return contents;
    }

    public void setContents(List<T> contents) {
        this.contents = contents;
    }

    public void setPageNumber(int pageNumber) {
        this.pageNumber = pageNumber;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    @Override
    public String toString() {
        return "PageEntity [pageNumber=" + pageNumber + ", pageSize=" + pageSize + ", totalPages=" + totalPages
                + ", total=" + total + ", contents=" + contents + "]";
    }

}
